<?php
namespace app\common\model;
/**
* Category模型
*/
class Bis extends BaseModel
{
	//通过状态获取商家数据
	public function getBisByStatus($status = 0){
		$order = [
			'id' => 'desc',
		];

		$data = [
			'status' => $status,
		];

		$result = $this->where($data)
			->order($order)
			->paginate(5);
		return $result;

	}
}